package com.tenbit.emp.dao;

import java.util.List;

import org.apache.log4j.Logger;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import emp.tenbit.emp.bean.EmpSkillBean;

@Component
public class EmployeeSkillEDAO extends SqlSessionDaoSupport{
	@Autowired
	private SqlSessionTemplate sqlSession;
	private Logger log=Logger.getLogger(this.getClass());
	
	public void insertEmpSkill(EmpSkillBean bean){
		sqlSession.insert("insertEmpSkill", bean);
	}
	public void deleteEmpSkill(String emp_id){
		log.debug("=========================>deleteEmpSkill "+emp_id);
		sqlSession.delete("deleteEmpSkill", emp_id);
	}
	public List<String> listEmpSkill(String emp_id){
		return (List<String>)sqlSession.selectList("listEmpSkill", emp_id);
	}
}
